package com.shuyu.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "token对象")
public class TokenVo {
    @ApiModelProperty(value = "token")
    private String token;
    @ApiModelProperty(value = "过期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expressDate;

    public TokenVo(String token, Date expressDate) {
        this.token = token;
        this.expressDate = expressDate;
    }
}
